﻿<Application x:Class="DeltaGroup.WheelOfJeopardy.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
             xmlns:Model="clr-namespace:DeltaGroup.WheelOfJeopardy.Model" 
             xmlns:System="clr-namespace:System;assembly=mscorlib" 
             xmlns:l="clr-namespace:DeltaGroup.WheelOfJeopardy.UI.Converters" 
             StartupUri="Main.xaml">
    <Application.Resources>

        
        <SolidColorBrush x:Key="ScreenBackgroundFillKey">#FFB4C6E4</SolidColorBrush>
        <SolidColorBrush x:Key="TransitionBackgroupBrushKey">#FF7E92B2</SolidColorBrush>
        <SolidColorBrush x:Key="StatusBarBackgroupFillKey">#FF4E59D2</SolidColorBrush>
        <LinearGradientBrush x:Key="StatusBarBackgroupBrushKey" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="Black" Offset="0.44" />
            <GradientStop Color="#FF111A7E" Offset="1" />
            <GradientStop Color="#FF111A7E" Offset="0.004" />
            <GradientStop Color="#FF0C1259" Offset="0.147" />
            <GradientStop Color="#FF101877" Offset="0.862" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="ScreenBackgroundBrushKey" EndPoint="0.805,1.062" StartPoint="0.048,-0.047">
            <GradientStop Color="#FFDFEBFF"/>
            <GradientStop Color="#FF486CA9" Offset="1"/>
            <GradientStop Color="#FFCBDAF3" Offset="0.263"/>
            <GradientStop Color="#FFADC0E2" Offset="0.556"/>
            <GradientStop Color="#FF6988BC" Offset="0.909"/>
            <GradientStop Color="#FF8EA7D1" Offset="0.828"/>
            <GradientStop Color="#FF9AB1D8" Offset="0.716"/>
        </LinearGradientBrush>

        <Style TargetType="{x:Type TextBox}">
            <Style.Triggers>
                <Trigger Property="Validation.HasError" Value="true">
                    <Setter Property="ToolTip"
                Value="{Binding RelativeSource={RelativeSource Self},
            Path=(Validation.Errors)[0].ErrorContent}"/>
                </Trigger>
            </Style.Triggers>
        </Style>
        <Style TargetType="{x:Type TextBlock}" x:Key="Padded">
            <Setter Property="Padding" Value="5"/>
        </Style>
        <Style TargetType="{x:Type Button}" x:Key="GameMenu">
            <Setter Property="Margin" Value="5"/>

            <Setter Property="Width" Value="200"/>
            <Setter Property="Height" Value="50"/>
            <Setter Property="FontSize" Value="16"/>
        </Style>
        <Style TargetType="{x:Type TextBlock}" x:Key="Title">
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="0,10"/>
            <Setter Property="FontSize" Value="26"/>
            <Setter Property="FontFamily" Value="Andalus"/>
        </Style>
        <Style TargetType="{x:Type TextBlock}" x:Key="Header">
            <Setter Property="Margin" Value="0,10"/>
            <Setter Property="FontSize" Value="16"/>
            <Setter Property="FontFamily" Value="Andalus"/>
        </Style>
        <Style TargetType="{x:Type TextBlock}" x:Key="SpinsRemaining">
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="FontSize" Value="26"/>
        </Style>
        <Style TargetType="{x:Type TextBlock}" x:Key="RoundTitle">
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="FontSize" Value="24"/>
        </Style>
        <Style TargetType="{x:Type TextBlock}" x:Key="ContestantStatusInfo">
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="FontSize" Value="13"/>
            <Setter Property="FontWeight" Value="DemiBold"/>
            <Setter Property="Foreground" Value="Yellow"/>
        </Style>
        <Style x:Key="HorizontalRadioButtonList" TargetType="{x:Type ListBox}">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="SelectionMode" Value="Single"/>
            <Setter Property="ItemsPanel">
                <Setter.Value>
                    <ItemsPanelTemplate>
                        <VirtualizingStackPanel Background="Transparent" Orientation="Horizontal"/>
                    </ItemsPanelTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="ItemContainerStyle">
                <Setter.Value>
                    <Style TargetType="{x:Type ListBoxItem}" >
                        <Setter Property="Margin" Value="5,0" />
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="{x:Type ListBoxItem}">
                                    <Border BorderThickness="0" Background="Transparent">
                                        <RadioButton Focusable="False"
					    IsHitTestVisible="False"
					    IsChecked="{TemplateBinding IsSelected}">
                                            <ContentPresenter />
                                        </RadioButton>
                                    </Border>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </Setter.Value>
            </Setter>
            <Setter Property="Control.Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBox}">
                        <Border BorderThickness="0" Padding="0" BorderBrush="Transparent" Background="Transparent" Name="Bd" SnapsToDevicePixels="True">
                            <ItemsPresenter SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <ObjectDataProvider MethodName="GetValues" ObjectType="{x:Type System:Enum}" x:Key="difficultyOptions">
            <ObjectDataProvider.MethodParameters>
                <x:Type TypeName="Model:DifficultyLevel"/>
            </ObjectDataProvider.MethodParameters>
        </ObjectDataProvider>

        <Style x:Key="CategoryButton" TargetType="Button">
            <Setter Property="OverridesDefaultStyle" Value="True"/>
            <Setter Property="Margin" Value="2"/>
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Background" >
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.043,0.058" StartPoint="1.198,1.283">
                        <GradientStop Color="#FF000143" Offset="0"/>
                        <GradientStop Color="#FF333EB1" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="Foreground" >
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFFFE4A7" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                        <GradientStop Color="#FEFEE5AB" Offset="0.78"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
           <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Border Name="border" 
				                BorderThickness="1"
				                Padding="2" 
				                CornerRadius="14" 
				                Background="{TemplateBinding Background}">
                            <Grid >
                                <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Name="content"/>
                            </Grid>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="Foreground" Value="White" />
                                <Setter Property="Background" Value="Blue" />
                            </Trigger>
                            <!--
                            <Trigger Property="IsPressed" Value="True">
                                <Setter Property="Background" >
                                    <Setter.Value>
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1" >
                                            <GradientStop Color="#FFFFD190" Offset="0.35"/>
                                            <GradientStop Color="Orange" Offset="0.95"/>
                                            <GradientStop Color="#FFFFD190" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Setter.Value>
                                </Setter>
                                <Setter TargetName="content" Property="RenderTransform" >
                                    <Setter.Value>
                                        <TranslateTransform Y="1.0" />
                                    </Setter.Value>
                                </Setter>
                            </Trigger>
                            <Trigger Property="IsDefaulted" Value="True">
                                <Setter TargetName="border" Property="BorderBrush" Value="#FF282828" />
                            </Trigger>
                            <Trigger Property="IsFocused" Value="True">
                                <Setter TargetName="border" Property="BorderBrush" Value="#FF282828" />
                            </Trigger>
                            -->
                            <Trigger Property="IsEnabled" Value="True">
                                <Setter TargetName="border" Property="BorderBrush" Value="Orange" />
                                <Setter TargetName="border" Property="BorderThickness" Value="6" />
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="EditorLabel" TargetType="{x:Type TextBlock}">
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="5,0" />
            <Setter Property="FontSize" Value="13"/>
            <Setter Property="FontWeight" Value="DemiBold" />
        </Style>
        <Style x:Key="EditorSection" TargetType="{x:Type TextBlock}">
            <Setter Property="FontSize" Value="24" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="Margin" Value="15" />
        </Style>
        
    </Application.Resources>
</Application>
